#ifndef POINTMASS_H_INCLUDED
#define POINTMASS_H_INCLUDED

#include "Vector.h"

namespace BlobSalladDS
{
	class PointMass
	{
		private:
			Vector *cur;
			Vector *prev;
			double mass;
			Vector *force;
			Vector *result;
			double friction;
		public:
			PointMass(double cx, double cy, double mass);
			double getXPos();
			double getYPos();
			Vector *getPos();
			double getXPrevPos();
			double getYPrevPos();
			Vector *getPrevPos();
			void addXPos(double dx);
			void addYPos(double dy);
			void setForce(Vector &force);
			void addForce(Vector &force);
			double getMass();
			void setMass(double mass);
			void move(double dt);
			void setFriction(double friction);
			double getVelocity();
			void draw(void *ctx, double scaleFactor);
	};
}

#endif // POINTMASS_H_INCLUDED
